import base from './base'

export default class News extends base {
    /**
   * 问卷列表
   */
    static async getList(options) {
        const url = `${this.baseUrl}/adm/surveys/getlist`
        return this.get(url, options)
    }
    /**
    * 添加问卷
    */
    static async add(options) {
        const url = `${this.baseUrl}/adm/surveys/add`
        return this.post(url, options)
    }
    /**
     * 问卷详情
     */
    static async getDetail(options) {
        const url = `${this.baseUrl}/adm/surveys/getDetail`
        return this.get(url, options)
    }
    /**
    * 编辑问卷
    */
    static async edit(options) {
        const url = `${this.baseUrl}/adm/surveys/edit`
        return this.post(url, options)
    }

    /**
  * 用户问卷列表
  */
    static async answerList(options) {
        const url = `${this.baseUrl}/adm/surveys/answerlist`
        return this.post(url, options)
    }
    /**
 * 用户答题详情
 */
    static async answerDetails(options) {
        const url = `${this.baseUrl}/adm/surveys/answerdetails`
        return this.post(url, options)
    }

    /**
* 删除问卷
*/
    static async deleteQuestion(options) {
        const url = `${this.baseUrl}/adm/surveys/del`
        return this.post(url, options)
    }

}
